package com.registration.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class PCUserBean {

    //pc端用户
    private Integer pc_user_id;//	pc端用户id
    private String username;//	用户名
    private String  password;//	密码
    private String   real_name;//	真实姓名
    private Integer dept_id;//	部门编号
    private String  email;//	邮箱
    private String phone;//	手机号
    private Date last_login_time;//	最后登录时间
    private Integer  status;//	状态
    private Integer  create_by;//	创始人id

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date  create_time;//	创建时间
    private Date update_time;//	修改时间

    private Integer role_id;

    @Override
    public String toString() {
        return "PCUserBean{" +
                "pc_user_id=" + pc_user_id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", real_name='" + real_name + '\'' +
                ", dept_id=" + dept_id +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", last_login_time=" + last_login_time +
                ", status=" + status +
                ", create_by=" + create_by +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", role_id=" + role_id +
                '}';
    }

    public Integer getRole_id() {
        return role_id;
    }

    public void setRole_id(Integer role_id) {
        this.role_id = role_id;
    }

    public PCUserBean() {
    }

    public PCUserBean(Integer pc_user_id, String username, String password, String real_name, Integer dept_id, String email, String phone, Date last_login_time, Integer status, Integer create_by, Date create_time, Date update_time) {
        this.pc_user_id = pc_user_id;
        this.username = username;
        this.password = password;
        this.real_name = real_name;
        this.dept_id = dept_id;
        this.email = email;
        this.phone = phone;
        this.last_login_time = last_login_time;
        this.status = status;
        this.create_by = create_by;
        this.create_time = create_time;
        this.update_time = update_time;
    }

    public Integer getPc_user_id() {
        return pc_user_id;
    }

    public void setPc_user_id(Integer pc_user_id) {
        this.pc_user_id = pc_user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(Date last_login_time) {
        this.last_login_time = last_login_time;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCreate_by() {
        return create_by;
    }

    public void setCreate_by(Integer create_by) {
        this.create_by = create_by;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
